/* usrd.t   USR_MSTR DELETE TRIGGER                                     */
/*Copyright 1986-2002 QAD Inc., Carpinteria, CA, USA.                   */
/*All rights reserved worldwide.  This is an unpublished work.          */
/*V8:ConvertMode=NoConvert                                              */
/************************************************************************/
/*  Program :usrd.t                                                     */
/*  Author  :Sue Poland                                                 */
/*  Date    :12/16/96                                                   */
/*!
    Description : usr_mstr DELETE TRIGGER


    This routine will, when a usr_mstr record is delete, delete a
    corresponding fsu_mstr record if it exists.

*************************************************************************/
/* REVISION: 8.6      LAST MODIFIED: 12/16/96   BY: *K03G* Sue Poland   */
/* REVISION: 9.1      LAST MODIFIED: 08/12/00   BY: *N0KC* myb          */
/************************************************************************/

TRIGGER PROCEDURE FOR DELETE OF usr_mstr.

if can-find (fsu_mstr where fsu_userid = usr_userid) then do:
    find fsu_mstr where fsu_userid = usr_userid exclusive-lock.
    delete fsu_mstr.
end.
